package com.malljelly.study.trans;

import com.google.common.base.Function;
import com.malljelly.study.dao.po.PaymentInfo;
import com.malljelly.study.vo.unionpay.service.UnionPaymentInfoResponseVo;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.springframework.beans.BeanUtils;

/**
 * Created by 骑着蜗牛去旅行 on 2018/8/14.
 */
public class PaymentInfoPoToPaymentInfoVo implements Function<PaymentInfo,UnionPaymentInfoResponseVo> {
    @Override
    public UnionPaymentInfoResponseVo apply(@Nullable PaymentInfo po) {
        UnionPaymentInfoResponseVo vo=new UnionPaymentInfoResponseVo();
        BeanUtils.copyProperties(po,vo);
        return vo;
    }
}
